package ResImpl;

import java.io.Serializable;


public class RecordState implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4897469676575642186L;
	private int type;
	private Object[] values;
	private String key;
	
	public static int TYPE_RESERVATION = 1;
	public static int TYPE_OPERATION = 2;
	
	public RecordState(int type, String key, Object[] values){
		this.type = type;
		this.values = values;
		this.key = key;
	}
	
	public boolean equals(RecordState r){
		if(r.key.equals(key)){
			return true;
		}
		else{
			return false;
		}
	}
	
	public int getRecordType(){
		return type;
	}
	
	public Object[] getValues(){
		return values;
	}
	
	public String getKey(){
		return key;
	}
}
